package com.zhijian.medical.entity.vo.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * 新文件管理修改历史记录 查询条件vo
 *
 * @author HCG
 * @version 1.0
 * @date 2022-07-31 13:55:28
 */
@Data
@Api(tags = "新文件管理修改历史记录查询条件vo")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ArticleHistorySearchVo implements Serializable {

    private static final long serialVersionUID = -1;

    /**
     * 页码
     */
    @ApiModelProperty("页码")
    @Min(value = 1, message = "页码最小为1")
    private Integer pageNum;

    /**
     * 数据库查询参数，前端忽略
     */
    @ApiModelProperty(value = "页码", hidden = true)
    private Integer startIndex;

    /**
     * 条数
     */
    @ApiModelProperty("每页显示的条数")
    @Min(value = 1, message = "每页显示的条数最小为1")
    private Integer pageSize;

    /**
     * 文章id
     */
    @ApiModelProperty("文章id")
    private Long articleId;

}